package date1201.p;

import java.sql.SQLException;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lu.jdog.util.Resource;

import dog.bean.Wufu;

/**
 * @author Yue
 * @date 2017年12月1日 上午9:46:57
 */
public class SpringTest {

	private static AbstractApplicationContext applicationContext;

	public static void main(String[] args) throws SQLException {
		applicationContext = new ClassPathXmlApplicationContext(
				Resource.getAssertPath(SpringTest.class, "beans.xml"));
		
		Wufu jingcha = applicationContext.getBean("jingcha", Wufu.class);

		System.out.println(jingcha.toString());
	}
}